const uint8 : Uint8Array = new Uint8Array (2);
uint8 [0] = 42;
console.log (uint8 [0]);
console.log (uint8.length);
console.log (uint8.BYTES_PER_ELEMENT);
const x : Uint8Array = new Uint8Array ([21, 31]);
console.log (x [1]);
const y : Uint8Array = new Uint8Array (x);
console.log (y [0]);
const buffer : ArrayBuffer = new ArrayBuffer (8);
const z : Uint8Array = new Uint8Array (buffer, 1, 4);
console.log (z.byteOffset);
